<!-- add javascript files -->
<?php
$cs = Yii::app()->getClientScript();
$cs->registerCoreScript("jquery");
$cs->registerScriptFile(Yii::app()->theme->baseUrl.'/js/jquery-ui-1.8.23.custom.min.js', CClientScript::POS_HEAD);
$cs->registerScriptFile(Yii::app()->theme->baseUrl.'/js/image_carousel/DP.js', CClientScript::POS_HEAD);
?>

<script type="text/javascript">
    window.onload = DP.inicio;
</script>